﻿using ChiWalker.Helpers;
using ChiWalker.Spell;
using Styx;
using Styx.TreeSharp;

namespace ChiWalker.Routines.Hunter
{
    internal class Pet
    {
        public static Composite CreatPetBehavoir()
        {
            return new PrioritySelector(
                new Decorator(ret => StyxWoW.Me.GotAlivePet && StyxWoW.Me.Pet != null,
                    new PrioritySelector(
                        new CastOnSelf(Spell.MendPet,
                            ret => StyxWoW.Me.Pet.HealthPercent <= 80 && !StyxWoW.Me.Pet.HasMyAura("Mend Pet"))
                        )
                    ),
                new Decorator(ret => StyxWoW.Me.GotAlivePet,
                    new PrioritySelector(
                        )
                    )
                );
        }
    }
}